package org.dromara.iot.service;

import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.iot.domain.bo.IotUpkeepPlanBo;
import org.dromara.iot.domain.vo.IotUpkeepPlanVo;

import java.util.Collection;
import java.util.List;

/**
 * 电梯保养计划Service接口
 *
 * @author lsl
 * @date 2024-06-14
 */
public interface IIotUpkeepPlanService {

    /**
     * 查询电梯保养计划
     */
    IotUpkeepPlanVo queryById(Long planId);

    /**
     * 查询电梯保养计划列表
     */
    TableDataInfo<IotUpkeepPlanVo> queryPageList(IotUpkeepPlanBo bo, PageQuery pageQuery);

    /**
     * 查询电梯保养计划列表
     */
    List<IotUpkeepPlanVo> queryList(IotUpkeepPlanBo bo);

    /**
     * 新增电梯保养计划
     */
    Boolean insertByBo(IotUpkeepPlanBo bo);

    /**
     * 修改电梯保养计划
     */
    Boolean updateByBo(IotUpkeepPlanBo bo);

    /**
     * 校验并批量删除电梯保养计划信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    IotUpkeepPlanVo getByElevatorId(Long elevatorId);
}
